package com.ruoyi.consumer.user.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.consumer.user.domain.User;
import com.ruoyi.consumer.user.domain.vo.UserLogin;
import com.ruoyi.consumer.user.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: LoginController
 * @description: $
 * @author: GCC
 * @date: 2025/2/25 15:32
 * @Version: 1.0
 */

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;


    @PostMapping("/login")
    public AjaxResult login(@RequestBody UserLogin userLogin)
    {
        return AjaxResult.success(loginService.userLogin(userLogin));
    }


}
